@import "~@/styles/theme.less";

.policy-page {
  height: 100%;
  background: #fff;
  .container {
    padding: 24px 32px 32px 32px;
  }
  .operate {
    height: 32px;
    .ant-btn-primary {
      float: left;
    }
  }
  .table-list {
    margin-top: 24px;
    .running {
      white-space: nowrap;
      font-family: PingFang-SC;
      font-size: 12x;
      font-weight: 400;
      display: flex;
      align-items: center;
      .circle {
        background-color: #2ac35c;
        width: 4px;
        height: 4px;
        border-radius: 50%;
        margin-right: 9.5px;
        margin-left: 1.5px;
        box-shadow: 0 0 0 2.5px rgba(42, 195, 92, 0.2);
        animation: antStatusProcessing 1.2s infinite ease-in-out;
      }
    }
    .cancel {
      white-space: nowrap;
      font-family: PingFang-SC;
      font-size: 12px;
      font-weight: 400;
      display: flex;
      align-items: center;
      .circle {
        background-color: rgba(104, 109, 118, 1);
        width: 4px;
        height: 4px;
        border-radius: 50%;
        margin-right: 9.5px;
        margin-left: 1.5px;
        box-shadow: 0 0 0 2.5px rgba(23, 30, 45, 0.25);
        animation: antStatusProcessing 1.2s infinite ease-in-out;
      }
    }
    .fail {
      white-space: nowrap;
      font-family: PingFang-SC;
      font-size: 12px;
      font-weight: 400;
      display: flex;
      align-items: center;
      .circle {
        background-color: #e53232;
        width: 4px;
        height: 4px;
        margin-left: 1.5px;
        border-radius: 50%;
        margin-right: 9.5px;
        box-shadow: 0 0 0 2.5px rgba(229, 50, 50, 0.2);
        animation: antStatusProcessing 1.2s infinite ease-in-out;
      }
    }
    .pending {
      color: @primary-color;
    }
    .ant-table-placeholder tr td {
      border-bottom: none;
    }
    .ant-table-wrapper
      .ant-table-content
      .ant-table-thead
      th
      .ant-table-column-sorter {
      margin-left: 8px;
    }
    .ant-table-wrapper .ant-table-content .ant-table-thead th {
      padding: 0 16px;
    }
  }
}

.create-p-modal {
  .ant-form-item:last-child {
    margin-bottom: 0;
  }
}

.multi-input {
  width: 528px;
  min-height: 155px;
  background: rgba(248, 248, 248, 1);
  border-radius: 2px;
  padding: 20px 24px;
  .multi-tip {
    font-size: 12px;
    font-family: PingFangSC-Regular, PingFang SC;
    font-weight: 400;
    color: rgba(23, 30, 45, 0.25);
  }
  .add-or {
    padding-left: 16px;
    font-size: 12px;
    font-family: PingFangSC-Regular, PingFang SC;
    font-weight: 400;
    color: @primary-color;
    cursor: pointer;
  }
  .multi-content {
    width: 480px;
    position: relative;
    background: #ffffff;
  }
  .multi-body {
    min-height: 54px;
    max-height: 350px;
    background: rgba(255, 255, 255, 1);
    margin: 11px 0;
    overflow: auto;
    position: relative;
    &::-webkit-scrollbar {
      width: 0;
      height: 6px; /*对水平流动条有效*/
    }
    &::-webkit-scrollbar-track {
      background-color: transparent;
      border-radius: 3px;
    }
    /*定义滑块颜色、内阴影及圆角*/
    &::-webkit-scrollbar-thumb {
      border-radius: 2px;
      background-color: rgba(0, 0, 0, 0.49);
      width: 6px;
    }
    .ant-select-selection-search {
      input {
        width: 100%;
      }
    }
  }
  .input-row {
    padding: 9px 7px 8px 10px;
    display: flex;
    width: max-content;
    .add-and {
      font-size: 12px;
      font-weight: 400;
      color: @primary-color;
      margin-left: 8px;
      line-height: 32px;
      cursor: pointer;
    }
    .input-row-item {
      margin-left: 40px;

      &:first-child {
        margin-left: 0;
      }
    }
    .input-row-item:not(:first-child) {
      position: relative;
      &::after {
        position: absolute;
        content: "and";
        font-size: 12px;
        font-family: PingFangSC-Regular, PingFang SC;
        font-weight: 400;
        color: rgba(23, 30, 45, 0.65);
        line-height: 22px;
        left: -32px;
        top: 5px;
      }
    }
    .input-row-item {
      position: relative;
    }
    .ant-select-arrow .anticon {
      color: #747881;
    }
    .delete-icon {
      position: absolute;
      width: 16px;
      height: 16px;
      right: -7px;
      top: -8px;
      z-index: 10;
      cursor: pointer;
    }
  }
}

@keyframes changeOpacity {
  form {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes changeOpacity2 {
  form {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
